import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
// import Router from './route_demo/router'
import Router from './router'
import { Provider } from 'react-redux'
import configureStore from './redux/store/configureStore'
import registerServiceWorker from './registerServiceWorker';
// redux store对象 管理所有的redux状态
const store = configureStore()


ReactDOM.render(
  <Provider store={store}>
    <Router />
  </Provider>
  , document.getElementById('root'));
// ReactDOM.render(<Router />, document.getElementById('root'));
registerServiceWorker();
